.grid{
    display: flex;
    flex-wrap: wrap;
    height:300px;
    width:400px;
}